package com.wpre.logisticsservice.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2025-04-08
 * Time: 20:41
 */
//@Component
//@RabbitListener(queues = "queue")
public class TestListener {


//    @RabbitHandler
    public void handMessage(String message) {
        System.out.println("接受到消息" + message);
    }

//    @RabbitHandler
    public void handMessage(Integer message) {
        System.out.println("接受到消息" + message);
    }


}
